/* 通知消息样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-info {
    background-color: #3b82f6;
}

.notification-success {
    background-color: #10b981;
}

.notification-warning {
    background-color: #f59e0b;
}

.notification-error {
    background-color: #ef4444;
}

/* RTSP播放器加载动画 */
.rtsp-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 10;
}

.rtsp-loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: rtsp-spin 1s linear infinite;
    margin-bottom: 10px;
}

.rtsp-loading-text {
    font-size: 14px;
}

.rtsp-error {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

@keyframes rtsp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 修复RTSP播放器视频显示 */
video {
    background-color: black;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.rtsp-player div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    font-size: 1rem;
    text-align: center;
}
